package com.rmi.impl;

import com.rmi.IHelloService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class HelloServiceImpl extends UnicastRemoteObject implements IHelloService {
    public HelloServiceImpl() throws RemoteException {
        super();
    }

    @Override
    public String say(String x) throws RemoteException {
        System.out.println("远端");
        return "ssss";
    }
}
